package com.topscore.uke.mvp.contractors;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.topscore.uke.entities.ActivitiesNewsData;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClient;
import com.topscore.uke.network.retrofit.NetClientPostJson;

import java.util.Map;

/**
 * Created by 71468 on 2018/3/29.
 */

public interface GetActivitiesContractor {
    interface Model {
        ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);

        void getData(Map<String,Object> request);
    }

    interface View extends BaseView {
        BaseQuickAdapter getListAdapter();
    }

    interface Presenter {
        void getActivitiesData();
        void loadNextPage();
    }

    interface CallBack extends BaseHttpListener {
        void onSuccess(BaseResponse<ActivitiesNewsData> response);
    }
}
